package kz.pompei.ifacer.model.widgets;

import java.io.PrintStream;
import java.util.ArrayList;
import java.util.List;
import java.util.UUID;

public class WidgetHint extends Widget {
  public int labelRevX = -10, labelRevY = 100;
  public final List<String> lines = new ArrayList<>();
  
  @Override
  protected void printFields(int offset, PrintStream out) {}
  
  public WidgetHint(UUID uuid) {
    super(uuid);
    init();
  }
  
  private final void init() {
    lines.add("Описание");
    lines.add("   чего-то");
  }
  
  public WidgetHint() {
    init();
  }
  
  @Override
  public Widget copy() {
    WidgetHint ret = new WidgetHint(uuid);
    assignTo(ret);
    return ret;
  }
  
  @Override
  public void assignTo(Widget widget) {
    checkWidget(widget, getClass());
    super.assignTo(widget);
    WidgetHint w = (WidgetHint)widget;
    w.labelRevX = labelRevX;
    w.labelRevY = labelRevY;
    w.lines.clear();
    w.lines.addAll(lines);
  }
}
